import Vue from 'vue'
import VueRouter from 'vue-router'
import Goods from '@/components/goods/goods'
import Ratings from '@/components/ratings/ratings'
import Seller from '@/components/seller/seller'

Vue.use(VueRouter)

export default new VueRouter({
  linkActiveClass: 'active',
  routes: [{
    path: '/',
    redirect: '/goods'
  }, {
    path: '/seller',
    name: 'Seller',
    component: Seller
  }, {
    path: '/goods',
    name: 'Goods',
    component: Goods
  }, {
    path: '/ratings',
    name: 'Ratings',
    component: Ratings
  }]
})
